home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / ctl3d.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.7 KB  |  99 lines

  1. /*-----------------------------------------------------------------------
  2. |    CTL3D.DLL
  3. |
  4. |    Adds 3d effects to Windows controls
  5. |
  6. |    See ctl3d.hlp for info
  7. |
  8. -----------------------------------------------------------------------*/
  9. #ifndef __CTL3D_H
  10. #define __CTL3D_H
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16.  
  17. BOOL WINAPI Ctl3dSubclassDlg(HWND, WORD);
  18. BOOL WINAPI Ctl3dSubclassDlgEx(HWND, DWORD);
  19.  
  20. WORD WINAPI Ctl3dGetVer(void);
  21. BOOL WINAPI Ctl3dEnabled(void);
  22.  
  23. HBRUSH WINAPI Ctl3dCtlColor(HDC, LONG);    // ARCHAIC, use Ctl3dCtlColorEx
  24. HBRUSH WINAPI Ctl3dCtlColorEx(UINT wm, WPARAM wParam, LPARAM lParam);
  25.  
  26. BOOL WINAPI Ctl3dColorChange(void);
  27.  
  28. BOOL WINAPI Ctl3dSubclassCtl(HWND);
  29. BOOL WINAPI Ctl3dSubclassCtlEx(HWND, int);
  30. BOOL WINAPI Ctl3dUnsubclassCtl(HWND);
  31.  
  32. LONG WINAPI Ctl3dDlgFramePaint(HWND, UINT, WPARAM, LPARAM);
  33.  
  34. BOOL WINAPI Ctl3dAutoSubclass(HINSTANCE);
  35. BOOL WINAPI Ctl3dAutoSubclassEx(HINSTANCE, DWORD);
  36. BOOL WINAPI Ctl3dIsAutoSubclass(VOID);
  37. BOOL WINAPI Ctl3dUnAutoSubclass(VOID);
  38.  
  39. BOOL WINAPI Ctl3dRegister(HINSTANCE);
  40. BOOL WINAPI Ctl3dUnregister(HINSTANCE);
  41.  
  42. //begin DBCS: far east short cut key support
  43. VOID WINAPI Ctl3dWinIniChange(void);
  44. //end DBCS
  45.  
  46. /* Ctl3dAutoSubclassEx flags */
  47. #define CTL3D_SUBCLASS_DYNCREATE    0x0001
  48. #define CTL3D_NOSUBCLASS_DYNCREATE    0x0002
  49.  
  50. /* Ctl3d Control ID */
  51. #define CTL3D_BUTTON_CTL    0
  52. #define CTL3D_LISTBOX_CTL    1
  53. #define CTL3D_EDIT_CTL        2
  54. #define CTL3D_COMBO_CTL     3
  55. #define CTL3D_STATIC_CTL    4
  56.  
  57. /* Ctl3dSubclassDlg3d flags */
  58. #define CTL3D_BUTTONS        0x0001
  59. #define CTL3D_LISTBOXES        0x0002        
  60. #define CTL3D_EDITS            0x0004    
  61. #define CTL3D_COMBOS        0x0008
  62. #define CTL3D_STATICTEXTS    0x0010
  63. #define CTL3D_STATICFRAMES    0x0020
  64.  
  65. #define CTL3D_NODLGWINDOW       0x00010000
  66. #define CTL3D_ALL                0xffff
  67.  
  68. #define WM_DLGBORDER (WM_USER+3567)
  69. /* WM_DLGBORDER *(int FAR *)lParam return codes */
  70. #define CTL3D_NOBORDER        0
  71. #define CTL3D_BORDER            1
  72.  
  73. #define WM_DLGSUBCLASS (WM_USER+3568)
  74. /* WM_DLGSUBCLASS *(int FAR *)lParam return codes */
  75. #define CTL3D_NOSUBCLASS    0
  76. #define CTL3D_SUBCLASS        1
  77.  
  78. #define CTLMSGOFFSET 3569
  79. #ifdef WIN32
  80. #define CTL3D_CTLCOLORMSGBOX    (WM_USER+CTLMSGOFFSET)
  81. #define CTL3D_CTLCOLOREDIT        (WM_USER+CTLMSGOFFSET+1)
  82. #define CTL3D_CTLCOLORLISTBOX    (WM_USER+CTLMSGOFFSET+2)
  83. #define CTL3D_CTLCOLORBTN        (WM_USER+CTLMSGOFFSET+3)
  84. #define CTL3D_CTLCOLORSCROLLBAR (WM_USER+CTLMSGOFFSET+4)
  85. #define CTL3D_CTLCOLORSTATIC    (WM_USER+CTLMSGOFFSET+5)
  86. #define CTL3D_CTLCOLORDLG        (WM_USER+CTLMSGOFFSET+6)
  87. #else
  88. #define CTL3D_CTLCOLOR (WM_USER+CTLMSGOFFSET)
  89. #endif
  90.  
  91.  
  92. /* Resource ID for 3dcheck.bmp (for .lib version of ctl3d) */
  93. #define CTL3D_3DCHECK 26567
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99. #endif /* __CTL3D_H */